var settings = require('../settings')
var redis = require('redis')
var client = redis.createClient(settings.REDIS_PORT, settings.REDIS_HOST)
if (settings.REDIS_PSD) {
  client.auth(settings.REDIS_PSD)
}
client.on("error", function (error) {
  console.error(error);
});
module.exports = client
